import collspaceStore from './components/CollspaceStore'
import { createContext , useContext } from 'react'

// 定义仓库类
class RootStore {
    constructor(){
        this.collspaceStore = collspaceStore
    }
}
// 创建对象
const rootStore = new RootStore()
//创建上下文空间
const context = createContext(rootStore)
//使用上下文空间
const useStore = ()=> useContext(context) 
//导出
export {useStore}